<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>Login</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">

    <!-- Styles -->
    <link href="${pageContext.request.contextPath}/templates/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/templates/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/templates/assets/plugins/icomoon/style.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/templates/assets/plugins/uniform/css/default.css" rel="stylesheet"/>
    <link href="${pageContext.request.contextPath}/templates/assets/plugins/switchery/switchery.min.css" rel="stylesheet"/>

    <!-- Theme Styles -->
    <link href="${pageContext.request.contextPath}/templates/assets/css/ecaps.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/templates/assets/css/custom.css" rel="stylesheet">


</head>

<body>

<!-- Page Container -->
<div class="page-container">
    <!-- Page Inner -->
    <div class="page-inner login-page">
        <div id="main-wrapper" class="container-fluid">
            <div class="row">
                <div class="col-sm-6 col-md-3 login-box">
                    <h4 class="login-title">Sign in to your account</h4>
                    <form action="${pageContext.request.contextPath}/login/login.do"
                          method="post">
                        <div class="form-group" style="height: 1%">
                            <div class="alert-warning">
                                <small>${message}</small>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Email address</label>
                            <input
                                    type="email" class="form-control" name="e-mail"
                                    id="exampleInputEmail1">
                        </div>
                        <div class="form-group">
                            <label for="exampleInputPassword1">Password</label>
                            <input
                                    type="password" class="form-control" name="password"
                                    id="exampleInputPassword1">
                        </div>
						<%-- 
                        <div class="form-group">
                            <div class="alert-warning">
                                <small>${message}</small>
                            </div>
                        </div>
                        --%>
                        <button type="submit" class="btn btn-primary">Login</button>
                        <a href="${pageContext.request.contextPath}/register" class="btn btn-default">Register</a><br>
                        <a href="${pageContext.request.contextPath}/index" class="forgot-link">Forgot password?</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- /Page Content -->
</div>
<!-- /Page Container -->

<!-- JavaScripts -->
<script type="text/javascript" src="${pageContext.request.contextPath}/templates/assets/plugins/jquery/jquery-3.1.0.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/templates/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/templates/assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/templates/assets/plugins/uniform/js/jquery.uniform.standalone.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/templates/assets/plugins/switchery/switchery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/templates/assets/js/ecaps.min.js"></script>
</body>
</html>
